package com.library.web.borrow_book.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.library.web.borrow_book.pojo.*;

import java.util.List;

public interface BorrowBookService extends IService<BorrowBook> {
    //借书
    void borrow(BorrowParm parm, String userType);

    //还书列表
    IPage<ReturnBook> getBorrowList(ListParm parm);

    //读者还书列表
    IPage<ReturnBook> getReaderBorrowList(ListParm parm);

    //还书
    void returnBook(List<ReturnParm> list);

    //异常还书
    void exceptionBook(ExceptionParm parm);

    //拒绝审核
    void refuseExamineBook(RefuseExamineParm parm);

    //借阅查看
    IPage<LookBorrow> getLookBorrowList(LookParm parm);

    //读者借阅查看
    IPage<LookBorrow> getReaderLookBorrowList(LookParm parm);
}
